<?php
if(!empty($_POST['formAction'])){
	if(authnum_check() == false){
		ajax_msg('warning', '验证码不正确', 'callback_password_save');
	}

	$r = $__oUser->edit_password($__userid, $_POST['oldpassword'] ,$_POST['newpassword']);
	if($r['result'] == 'succ'){
		ajax_msg('succ', '', 'callback_password_save', $r['data']['synjs']);
	}
	ajax_msg($r['result'], $r['rmsg'], 'callback_password_save');
}
?>